package cn.fengzhilun.javase.day06;

public class Manager extends Employee {
	private double bonus;
	
	public void Manage() {
		System.out.println("我正在管理员工干活");
		
	}

	public double getSalary() {
	//孩子获取工资的方法
		System.out.println("孩子获取薪水的方法");
		return super.getSalary()+bonus;
	}
	
	public double getBonus() {
		return bonus;
	}

	public void setBonus(double bonus) {
		this.bonus = bonus;
	}
	
	
	
}
